import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

// 路由类型:RouteRecordRaw
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: () => import('/src/components/Apps/Simulation/Home.vue'),
  },
  {
    path: "/MenuIndex",
    name: "MenuIndex",
    component: () => import("/src/components/Apps/Simulation/demarcateMenu/index.vue"),
  },
  {
    path: "/CategoryMenu",
    name: "CategoryMenu",
    component: () => import("/src/components/Apps/Simulation/CategoryMenu/index.vue"),
  },
  {
    path: "/TrackMenu",
    name: "TrackMenu",
    component: () => import("/src/components/Apps/Simulation/TrackMenu/index.vue"),
  },
  {
    path: "/summaryPage",
    name: "summaryPage",
    component: () => import("/src/components/Apps/Simulation/summaryPage/index.vue"),
  },
  {
    path: "/PracticalDriving",
    name: "PracticalDriving",
    component: () => import("/src/components/Apps/Simulation/PracticalDriving/index.vue"),
  },
  {
    path: "/Driverless",
    name: "Driverless",
    component: () => import("/src/components/Apps/Simulation/DriverlessMenu/index.vue"),
  },
  {
    path: "/ApolloImitate",
    name: "ApolloImitate",
    component: () => import("/src/components/Apps/Simulation/ApolloImitate/index.vue"),
  },
  {
    path: "/Terminal",
    name: "Terminal",
    component: () => import("/src/components/Apps/Simulation/Terminal/index.vue"),
  },
];

const router = createRouter({
  // 路由模式
  history: createWebHistory(),
  routes,
});

export default router;